<?php

$strings = array();

	$strings['addcomment'] = "Add Comment";
	$strings['addHistoryEntry'] = "Add history entry";
	$strings['allowComments'] = "Allow comments";
	$strings['allowRating'] = "Allow rating";
	$strings['anonymous'] = "Anonymous";
	$strings['anonymous'] = "Anonymous";
	$strings['attachedFile'] = "attached the file:";
	$strings['attachments'] = "Attachments";
	$strings['autoSaved'] = "Content Auto-saved";
	$strings['autoSavedBracket'] = "[Auto-saved] ";
	$strings['autoSaving'] = "Auto-saving...";
	$strings['backToAllCategories'] = "Back to all categories";
	$strings['banComment'] = "Ban Comment";
	$strings['banning'] = "Banning...";
	$strings['banUnban'] = "Ban / Unban";
	$strings['blockquote'] = "Quote";
	$strings['bold'] = "Bold";
	$strings['captchaerror'] = "The visual code you entered was invalid";
	$strings['captchaexplain'] = "Writing this visual code helps identifying you as a human";
	$strings['categoryMissing'] = "Can't save a document with missing category";
	$strings['categorySaved'] = "Category saved.";
	$strings['changeCategory'] = "Change category...";
	$strings['changePassword'] = "Change Password";
	$strings['changePasswordOf'] = "Change password of: ";
	$strings['chooseCategory'] = "Choose category";
	$strings['cleanFormat'] = "Clean format";
	$strings['cms'] = "CMS";
	$strings['cmsMenu'] = "CMS - Menu";
	$strings['comment'] = "Comment";
	$strings['commented'] = "commented:";
	$strings['comments'] = "Comments";
	$strings['comments'] = "Comments";
	$strings['content'] = "Content";
	$strings['contentEditor'] = "Content Editor";
	$strings['contentEditorDesc'] = "Allows you to create and edit existing content.";
	$strings['contentIntro'] = "Intro:";
	$strings['contentoffline'] = "The content is currently offline.";
	$strings['contentTitle'] = "Title:";
	$strings['createdContent'] = "created the content.";
	$strings['createNew'] = "(Create New)";
	$strings['createNewCategory'] = "Create new category";
	$strings['createUser'] = "Create new user";
	$strings['creationDate'] = "Creation date:";
	$strings['dates'] = "Dates";
	$strings['deleteFile'] = "Delete file";
	$strings['deleteingFile'] = "Removing file...";
	$strings['deleteingUser'] = "Deleteing user...";
	$strings['deleteTheUserQuestion'] = "Delete the user?";
	$strings['deleteUser'] = "Delete selected user";
	$strings['dettachedFile'] = "removed the file:";
	$strings['downloadFile'] = "Download file";
	$strings['doYouWantToDeleteFile'] = "Do you want to delete the file: ";
	$strings['editLevel'] = "Edit level:";
	$strings['email'] = "e-mail";
	$strings['embed'] = "Embed";
	$strings['enter'] = "Enter";
	$strings['enterCommentForHistory'] = "Enter comment for history:";
	$strings['enterNewFileName'] = "Enter new file name:";
	$strings['enterNewUserMail'] = "Enter new user e-mail:";
	$strings['enterUrl'] = "Enter URL for link:";
	$strings['error'] = "Error: ";
	$strings['errorDeleteingFile'] = "Error removing file: ";
	$strings['errorLoadingUser'] = "Some error happened while loading the user data.";
	$strings['errorLoadingUsers'] = "Some error happened while loading users.";
	$strings['errorOpeningContent'] = "There was an error while opening the document";
	$strings['errorRenamingFile'] = "Error renaming file: ";
	$strings['filesLoaded'] = "Files loaded.";
	$strings['formatting'] = "Formatting...";
	$strings['geterror'] = "Incomplete GET data";
	$strings['goback'] = "Go back";
	$strings['h1'] = "Header 1";
	$strings['h2'] = "Header 2";
	$strings['h3'] = "Header 3";
	$strings['history'] = "History";
	$strings['indent'] = "Indent";
	$strings['insertLink'] = "Insert Link";
	$strings['insertOl'] = "Insert ordered list";
	$strings['insertUL'] = "Insert unordered list";
	$strings['introMissingConfirm'] = "You haven't entered a document description, do you want to proceed?";
	$strings['invalidPass'] = "Invalid Password";
	$strings['invalidUser'] = "Invalid User";
	$strings['italic'] = "Italic";
	$strings['justifyCenter'] = "Justify Center";
	$strings['justifyLeft'] = "Justify Left";
	$strings['justifyRight'] = "Justify Right";
	$strings['justifyText'] = "Justify Text";
	$strings['loadingComments'] = "Loading Comments...";
	$strings['loadingFiles'] = "Loading Files...";
	$strings['loadingHistory'] = "Loading history...";
	$strings['loadingUserData'] = "Loading user data...";
	$strings['logout'] = "Close Session";
	$strings['logout'] = "Log Out";
	$strings['makeLink'] = "Insert link";
	$strings['manageUsers'] = "Manage Users";
	$strings['modificationDate'] = "Modification date:";
	$strings['modifiedContent'] = "modified the content.";
	$strings['monospace'] = "Monospace";
	$strings['mustSaveDocument'] = "Document must be saved.";
	$strings['myLevelIs'] = "My level is: ";
	$strings['newCategoryName'] = "Name for new category:";
	$strings['newPassword'] = "New password:";
	$strings['newUserBracket'] = "[New User]";
	$strings['newWord'] = "New";
	$strings['next'] = "Next";
	$strings['nocommenterror'] = "No comment was entered";
	$strings['normal'] = "Normal";
	$strings['nosubject'] = "No Subject";
	$strings['notRated'] = "Not rated";
	$strings['online'] = "Online";
	$strings['open'] = "Open";
	$strings['openContent'] = "Open existing content";
	$strings['opened'] = "opened the content";
	$strings['optional'] = "(Optional)";
	$strings['outdent'] = "Outdent";
	$strings['pass'] = "Password";
	$strings['passwordCantBeEmpty'] = "Password can't be empty";
	$strings['passwordsDoesntMatch'] = "Passwords doesn't match";
	$strings['paswordChangedOk'] = "Password changed OK";
	$strings['pleaseChangeToPreview'] = "Please change mode to Preview";
	$strings['postcomment'] = "Post comment";
	$strings['posterrror'] = "Incomplete POST data";
	$strings['preview'] = "Preview";
	$strings['previous'] = "Previous";
	$strings['productName'] = "Moka CMS";
	$strings['properties'] = "Properties";
	$strings['rate'] = "Rate";
	$strings['rate'] = "Rate";
	$strings['rated'] = "Rated";
	$strings['ratingWait'] = "Rating...";
	$strings['readLevel'] = "Read level:";
	$strings['ready'] = "Ready.";
	$strings['redo'] = "Redo";
	$strings['refreshUserList'] = "Refresh user list";
	$strings['reloadHistory'] = "Reload history";
	$strings['renameFile'] = "Rename file";
	$strings['renamingFile'] = "Renaming file...";
	$strings['repeatNewPassword'] = "Repeat new password:";
	$strings['required'] = "(Required)";
	$strings['save'] = "Save";
	$strings['saveAs'] = "Save as...";
	$strings['savedError'] = "Error while saving document";
	$strings['savedOk'] = "Document Saved.";
	$strings['saveError'] = "Error saving document: ";
	$strings['saving'] = "Saving...";
	$strings['savingCategory'] = "Saving Category...";
	$strings['security'] = "Security";
	$strings['selectCategory'] = "Select Category...";
	$strings['selectUserFirst'] = "Please select a user first.";
	$strings['sexyBar'] = "Sexy Bar";
	$strings['startSession'] = "Start Session";
	$strings['thanksForRating'] = "Thanks for rating!";
	$strings['title'] = "Subject";
	$strings['titleMissing'] = "Can't save a document whith missing title";
	$strings['unbannning'] = "Unbanning...";
	$strings['underline'] = "Underline";
	$strings['undo'] = "Undo";
	$strings['userAdmin'] = "User is administrator of site";
	$strings['userEditor'] = "User Editor";
	$strings['userEditorDesc'] = "Manage the users that can edit content on your site";
	$strings['userEmail'] = "User's e-mail:";
	$strings['userLevel'] = "User's security level:";
	$strings['userNickname'] = "User's nickname:";
	$strings['userSignature'] = "User's signature:";
	$strings['wait'] = "Wait...";
	$strings['wantSaveChangesQuestion'] = "Do you want to save the changes?";
	$strings['warningUnsavedChanges'] = "WARNING: There are unsaved changes to the content";
	$strings['writethis'] = "Write this";
	$strings['youremail'] = "Your e-mail";
	$strings['yourname'] = "Your name";






//Check for translations/personalization
if( isset($GLOBALS['data_path']) ){
	if( file_exists($GLOBALS['data_path'] . "strings.php") ){
		include $GLOBALS['data_path'] . "strings.php";
	}
}else{
	if( file_exists("../cms-data/strings.php") ){
		include "../cms-data/strings.php";
	}
}

if(isset($_GET['js']) ){
	
	header("Content-Type: text/javascript");
	
	echo "strings=[];";
	
	foreach($strings as $key => $str){
		echo sprintf("strings.%s='%s';", $key, str_replace("'", "\\'", $str));
	}
	
}

?>